package com.wealth.coupon.enums;
/**
 * 优惠券使用情况
 */
public enum CouponRecordStatusEnum {
	
	UNUSED(0,"未使用"),USED(1,"已使用");
	
	private int value;
	private String comment;
	private CouponRecordStatusEnum(int value,String comment){
		this.value = value;
		this.comment =comment;
	}
	
	public int getValue(){
		return value;
		
	}
	public String getComment(){
		return comment;
	}
	public static CouponRecordStatusEnum get(int value){
		for (CouponRecordStatusEnum o:CouponRecordStatusEnum.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}
}
